package com.woniuxy.services;

import com.github.pagehelper.PageInfo;
import com.woniuxy.entitys.Company;
import com.woniuxy.entitys.Service;

import java.util.List;
import java.util.Map;

public interface ServiceService {
    //查询需要修改服务
    PageInfo<Service> selectAllService(Integer currentPage, Integer pageSize, String key, String value);
    //查询归档服务
    PageInfo<Service> selectAll(Integer currentPage, Integer pageSize);
    //创建服务
    public int saveService(Service service);

    public List<Company> selectByComName(String name);

    public Service selectByPrimaryKey(Integer svr_id);

    public int upddue(Integer id);
    public int updateByPrimaryKey(Service service);

    public int insertSelective(Service service);

    //根据年份和客户id分组查询
    List<Map<String, Object>> getServeCount(String year, Integer com_id);
}
